//
//  CTMediator+Transfer.m
//  KBMediator_Catrgories
//
//  Created by 肖雄 on 17/5/2.
//  Copyright © 2017年 kuaibao. All rights reserved.
//

#import "CTMediator+Transfer.h"

@implementation CTMediator (Transfer)

- (UIViewController *)Transfer_transferControllerWithWaybillNo:(NSString *)waybillNo brand:(NSString *)brand
{
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    if (waybillNo) { [params setObject:waybillNo forKey:@"waybillNo"]; }
    if (brand) { [params setObject:brand forKey:@"brand"]; }
    return [self performTarget:@"Transfer" action:@"transferController" params:params shouldCacheTarget:YES];
}

- (UIViewController *)Transfer_transferControllerWithWaybillNo:(NSString *)waybillNo brand:(NSString *)brand saveRecord:(BOOL)saveRecord uploadArrive:(BOOL)uploadArrive delegate:(id)delegate dataSource:(id)dataSource
{
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    if (waybillNo) { [params setObject:waybillNo forKey:@"waybillNo"]; }
    if (brand) { [params setObject:brand forKey:@"brand"]; }
    if (delegate) { [params setObject:delegate forKey:@"delegate"]; }
    if (dataSource) { [params setObject:dataSource forKey:@"dataSource"]; }
    [params setObject:@(saveRecord) forKey:@"saveRecord"];
    [params setObject:@(uploadArrive) forKey:@"uploadArrive"];
    return [self performTarget:@"Transfer" action:@"transferController" params:params shouldCacheTarget:YES];
}


@end
